package com.yqw.spring1219.dp.filter;

public class FilterMain {
	
	public static void main(String[] args) {
		String msg = "大家好:) <Script> 敏感，被就业， 网咯授课，因为看不见大家伙儿";
		MsgProcessor mp = new MsgProcessor();
		mp.setMsg(msg);
		FilterChain fc = new FilterChain();
		fc.addFilter(new HtmlFilter()).addFilter(new SesitiveFilter());
		mp.setFilterChain(fc);
		String result = mp.precess();
		System.out.println(result);
	}

}
